@echo off
chcp 65001 >nul
setlocal

:: Release 测试脚本：调用 builders\build_ios_export.bat
:: 可通过预先设置环境变量 UNITY_EXE 覆盖 Unity 路径

set "buildType=RELEASE"
set "branch=master"
set "clean=true"

set "projectPath=C:\WareHouse\chordroguelike"

if not defined UNITY_EXE (
  set "UNITY_EXE=C:\Program Files\Unity\Hub\Editor\2022.3.61f1c1\Editor\Unity.exe"
)
set "unity=%UNITY_EXE%"

if not exist "%unity%" (
  echo Unity not found at "%unity%"
  echo 请设置环境变量 UNITY_EXE 指向 Unity.exe 或修改本脚本路径。
  exit /b 1
)

call "%~dp0build_ios_export.bat" %buildType% %branch% %clean% "%projectPath%"  "%unity%"  "%projectPath%\Build\ios_build_log.txt"

endlocal
exit /b 0


